home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
hardware
/
cpu115
/
mlib.bat
< prev
next >
Wrap
DOS Batch File
|
1995-02-27
|
1KB
|
53 lines
@echo off
echo mLib - TMi0SDGL(tm) Library Builder Version 1.04 (c) 1994,95 by B-coolWare.
echo:
if .%1. == .. goto Help
if .%model%.==.. goto setModel
goto okModel
:setModel
if "%2" == "s" goto Small
if "%2" == "S" goto Small
if "%2" == "m" goto Med
if "%2" == "M" goto Med
if "%2" == "c" goto Comp
if "%2" == "C" goto Comp
if "%2" == "l" goto Large
if "%2" == "L" goto Large
if "%2" == "h" goto Huge
if "%2" == "H" goto Huge
goto Help
:Small
set model=__SMALL__
goto okModel
:Med
set model=__MEDIUM__
goto okModel
:Comp
set model=__COMPACT__
goto okModel
:Large
set model=__LARGE__
goto okModel
:Huge
set model=__HUGE__
:okModel
echo Building C/C++ TMi0SDGL(tm) Library...
tasm /t/m/d%model% cpuspeed, speed_c
tasm /t/m/d%model% cpu_hl, cpu_c
tasm /t/m/d%model% p5info
tasm /t/m/d%model% smm
bcc -m%2 -c -Ii:\borlandc\include cputype.c
REM tcc -m%2 -c -Id:\turboc\include cputype
rem ^-- unREM this if you're TC user
REM cl /A%2 /c /Ox /FPi /Id:\msc5\include cputype
rem ^-- unRem this if you're MSC user
if exist %1%2.lib del %1%2.lib
tlib %1%2 /C /0 +speed_c.obj +cpu_c.obj +cputype.obj +p5info.obj +smm.obj
echo mLib done.
goto Quit
:Help
echo usage: mlib libname s│c│m│l│h
:Quit
if %makeC% == ON goto Done
set model=
:Done